package com.ycxy.sh.transaction.service;

import com.ycxy.sh.transaction.dao.entity.Comment;
import com.ycxy.sh.transaction.dao.entity.Reply;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 宋H
 * @Date: 2023/3/27
 * @Description: com.ycxy.sh.transaction.service
 * @version: 1.0
 */
@Service
public interface CommentReplyService {

    /**
     * 查询商品下的评论和回复
     */
    List<Comment> selectCommentReply(Long commentid);

    /**
     * 用户进行评论回复
     */
    void replyComment(Reply reply,Long replyuserid);


    /**
     * 根据评论者id和商品发布者id删除评论
     * @param commentuserid
     * @param commentid
     */
    void deleteComment(Long commentid,Long commentuserid);

    /**
     * 根据回复者id和商品发布者id删除回复
     * @param replyid
     * @param replyuserid
     */
    void deleteReply(Long replyid,Long replyuserid);
}
